//
//  JGLoginViewController.m
//  WangYLottery
//
//  Created by JJetGu on 15/8/22.
//  Copyright (c) 2015年 JJetGu. All rights reserved.
//

#import "JGLoginViewController.h"
#import "JGSettingViewController.h"

@interface JGLoginViewController ()

@property (weak, nonatomic) IBOutlet UIButton *loginButton;


@end

@implementation JGLoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // 设置登录按钮的拉伸好的图片
    [_loginButton setBackgroundImage:[UIImage imageWithResizableImageName:@"RedButton"] forState:UIControlStateNormal];
    
    [_loginButton setBackgroundImage:[UIImage imageWithResizableImageName:@"RedButtonPressed"] forState:UIControlStateHighlighted];
    
}


- (IBAction)setting:(id)sender {
    // 创建设置口控制器
    JGSettingViewController *settingVc = [[JGSettingViewController alloc] init];
    settingVc.title = @"设置";
    
    // 跳转到设置界面
    [self.navigationController pushViewController:settingVc animated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
